﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace E2_WEBSITE.Code.RAM
{
    public class RamController
    {
        public List<String> GetListBusByManufacture(string sManufacture)
        {
            RamDataAccess rda = new RamDataAccess();
            return rda.GetListBusByManufactureName(sManufacture);
        }

        public List<string> GetListMemoryByManufactureAndBus(string sManufacture,string sBus)
        {
            RamDataAccess rda = new RamDataAccess();
            return rda.GetListMemoryByManufactureAndBus(sManufacture, sBus);
        }

        public List<string> GetListProductByManufactureAndBusAndMemory(string sManufacture,string sBus,string sMemory)
        {
            RamDataAccess rda = new RamDataAccess();
            return rda.GetListRamNameByManufactureAndBusAndMemory(sManufacture, sBus, sMemory);
        }
        
        public int GetRamIDByManufactureAndBusAndMemoryAndName(string sManufacture ,string sBus,string sMemory,string sName)
        {
            RamDataAccess rda = new RamDataAccess();
            return rda.GetRamIDByManuAndBusAndMemoryAndName(sManufacture, sBus, sMemory, sName);
        }
    }
}
